package second;

import java.util.Scanner;
enum Grade {
	A, B, C, D, E;
};

public class Main8 {
	
	public static  void main(String[] args)
     {
    	 Scanner sc=new Scanner(System.in);
    	 Grade grade;
    	 while(true)
    	 {
    		 int math=sc.nextInt();
    		 grade=getGrade(math);
    		 switch (grade) {
			 case A: 
				    System.out.println("Excellent");
				    printGradeInfo(grade);
				    break;
			 case B:
					System.out.println("Good");
					printGradeInfo(grade);
					break;
				case C:
					System.out.println("Average");
					printGradeInfo(grade);
					break;
				case D:
					System.out.println("Fair");
					printGradeInfo(grade);
					break;
				case E:
					System.out.println("Poor");
					printGradeInfo(grade);
					break;
			   default:
				    break;
			}  
    	 }
     }

	 private static Grade getGrade(int math) {
		    Grade temp;
			if (math >= 90 &&math <= 100) {
				temp = Grade.A;
				return temp;
			}
			if (math>= 80 && math <= 90) {
				temp = Grade.B;
				return temp;
			}
			if (math>= 70 && math <= 80) {
				temp = Grade.C;
				return temp;
			}
			if (math >= 60 && math <= 70) {
				temp = Grade.D;
				return temp;
			}
			else {
				temp = Grade.E;
				return temp;
			}
		}

	 public static void printGradeInfo(Grade grade){
	       System.out.println("class name="+Grade.class);
	       System.out.println("grade value="+grade);
	}
}
